import { requestClient as request } from '#/api/request'

// 获取调拨列表
export function getChangeStockRecordList(params: any) {
  return request.get('/admin/ChangeStockRecord/index', params)
}

// 获取调拨详情
export function getChangeStockRecordInfo(params: any) {
  return request.get('/admin/ChangeStockRecord/edit', params)
}

// 新增调拨
export function doChangeStockRecordAdd(data: any) {
  return request.post('/admin//ChangeStockRecord/add', data)
}

// 编辑调拨
export function doChangeStockRecordEdit(data: any) {
  return request.post('/admin/ChangeStockRecord/edit', data)
}

// 删除调拨
export function doChangeStockRecordDelete(data: any) {
  return request.post('/admin/ChangeStockRecord/del', data)
}

// 审核调拨
export function doChangeStockRecordApproval(data: any) {
  return request.post('/admin/ChangeStockRecord/approval', data)
}

// 反审调拨
export function doChangeStockRecordAgainst(data: any) {
  return request.post('/admin/ChangeStockRecord/against', data)
}
